package com.dj.repository;


import com.dj.bean.EncounterHistoryBean;
import com.dj.bean.ProcedureRequestHistoryBean;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface ProcedureRequestHistoryRepository extends JpaRepository<ProcedureRequestHistoryBean,String>,JpaSpecificationExecutor<ProcedureRequestHistoryBean> {

    ProcedureRequestHistoryBean findByValidVersionIdAndVersion(String validVersionId, String version);

    List<ProcedureRequestHistoryBean> findByValidVersionId(String validVersionId);

}
